#navrect>div {
    position: fixed;
}

#navbutton {
    /*头像未定*/
    width: 2cm;
    height: 2cm;
    top: 5mm;
    right: 5mm;
    background-color: #dddddd;
    z-index: 1;
    border: rgba(255, 194, 170, 0.22) 1px solid;
    transition: transform 0.4s linear, box-shadow 0.4s ease-in-out;
    background-image: url("../image/touxiang.jpg");
    background-repeat: no-repeat;
    background-size: cover;
}
/*导航栏按钮的打开状态*/

#navbutton.active {
    transform: rotate(-90deg);
    box-shadow: 0 0 5px 5px rgba(169, 169, 169, 0.5);
}

#navbar {
    top: 15mm;
    padding-top: 1cm;
    right: 5mm;
    width: 2cm;
    /*height: 8cm;*/
    height: 2cm;
    transition: all 0.3s linear 0.3s;
    background-image: linear-gradient(to bottom, rgb(191, 201, 255) 0%, rgb(255, 190, 187) 70%, rgba(255, 255, 255, 0));
    opacity: 0;
    z-index: 0;
    /*border:solid 1px #fec5ff;*/
    border-radius: 5px;
}

#navbar>div {
    height: 1.5cm;
    line-height: 1.5cm;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.19, 0.46, 0.34, 0.87);
    cursor: pointer;
}

#navbar>div:hover {
    box-shadow: 0 0 5px 5px rgba(192, 192, 192, 0.36);
    outline: solid rgba(255, 187, 185, 0.42) 1px;
}

#navbar>div:nth-child(1) {
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0.15));
}

#navbar>div:nth-child(2) {
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.10));
}

#navbar>div:nth-child(3) {
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.05));
}

#navbar>div:nth-child(4) {
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0));
}

#navbutton.active + #navbar {
    height: 10cm;
    opacity: 1;
}

#navrect {
    height: 11cm;
    width: 2cm;
    top: 5mm;
    right: 5mm;
    position: fixed;
    font-family: 'kitty-miao';
}

/*页面*/
#content{
    overflow: hidden;
    position: fixed;
    top:0;
    left:0;
    height: 100%;
    width: 100%;
}
#content>[name="sele"]{
    display: none;
}
.page{
    height: 100%;
    width: 100%;
    overflow: hidden;
}
#sele1:checked~.page{
    transform: translateY(0%);
}
#sele2:checked~.page{
    transform: translateY(-100%);
}
#sele3:checked~.page{
    transform: translateY(-200%);
}
#sele4:checked~.page{
    transform: translateY(-300%);
}

@keyframes mask {
    0%{opacity: 0;}
    50%{
        opacity:1;}
    100%{
        opacity: 0;
    }
}
#pagemask{
    position: fixed;
    top:0;
    left:0;
    height: 100%;
    width: 100%;
    display: none;
    background-color: white;
    animation: mask 1s ease-in-out;
    z-index: 1;
    /*animation-play-state:paused;*/
}